diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
commit | 5215c2242dd7b87418a7c10781c2b10b35d86f46 (patch) | |
tree | 9164c3963424cc149ddd7e61561470f27f5b817a /tests/cassettes/test_status_post[Content warning-private].yaml | |
parent | 0e00fced99976d74e972a3c9ca5b762697840a33 (diff) | |
download | mastodon.py-5215c2242dd7b87418a7c10781c2b10b35d86f46.tar.gz |
Fix some things in streaming and admin API for 3.3.0 support
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-private].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-private].yaml | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-private].yaml b/tests/cassettes/test_status_post[Content warning-private].yaml index f6c5e43..6905bac 100644 --- a/tests/cassettes/test_status_post[Content warning-private].yaml +++ b/tests/cassettes/test_status_post[Content warning-private].yaml | |||
@@ -20,18 +20,18 @@ interactions: | |||
20 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
21 | response: | 21 | response: |
22 | body: | 22 | body: |
23 | string: '{"id":"109336907896557916","created_at":"2022-11-13T14:13:34.341Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | 23 | string: '{"id":"109337448591433112","created_at":"2022-11-13T16:31:04.690Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content |
24 | warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109336907896557916","url":"http://localhost:3000/@mastodonpy_test/109336907896557916","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 24 | warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109337448591433112","url":"http://localhost:3000/@mastodonpy_test/109337448591433112","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
25 | test suite","website":null},"account":{"id":"109336899193569236","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 25 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
26 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | 26 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI |
27 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | 27 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":10,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' |
28 | headers: | 28 | headers: |
29 | Cache-Control: | 29 | Cache-Control: |
30 | - no-store | 30 | - no-store |
31 | Content-Security-Policy: | 31 | Content-Security-Policy: |
32 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 32 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
33 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 33 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
34 | style-src ''self'' http://localhost:3000 ''nonce-8xi/Gj6diYTNo3oSXWaarQ==''; | 34 | style-src ''self'' http://localhost:3000 ''nonce-jnYW7q1nIGyWk+Vfdc2zDQ==''; |
35 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 35 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
36 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 36 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
37 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 37 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -41,7 +41,7 @@ interactions: | |||
41 | Content-Type: | 41 | Content-Type: |
42 | - application/json; charset=utf-8 | 42 | - application/json; charset=utf-8 |
43 | ETag: | 43 | ETag: |
44 | - W/"122101fc7341892710308f401f56a50f" | 44 | - W/"4aa5a145eb4d20035b114d1669500e76" |
45 | Referrer-Policy: | 45 | Referrer-Policy: |
46 | - strict-origin-when-cross-origin | 46 | - strict-origin-when-cross-origin |
47 | Transfer-Encoding: | 47 | Transfer-Encoding: |
@@ -59,13 +59,13 @@ interactions: | |||
59 | X-RateLimit-Limit: | 59 | X-RateLimit-Limit: |
60 | - '300' | 60 | - '300' |
61 | X-RateLimit-Remaining: | 61 | X-RateLimit-Remaining: |
62 | - '207' | 62 | - '205' |
63 | X-RateLimit-Reset: | 63 | X-RateLimit-Reset: |
64 | - '2022-11-13T15:00:00.360446Z' | 64 | - '2022-11-13T18:00:00.709684Z' |
65 | X-Request-Id: | 65 | X-Request-Id: |
66 | - 05868784-d1b8-4966-8401-aec397e38332 | 66 | - 339a4dd9-5005-4a3a-a13a-21d19226713b |
67 | X-Runtime: | 67 | X-Runtime: |
68 | - '0.031319' | 68 | - '0.031977' |
69 | X-XSS-Protection: | 69 | X-XSS-Protection: |
70 | - 1; mode=block | 70 | - 1; mode=block |
71 | status: | 71 | status: |
@@ -87,21 +87,21 @@ interactions: | |||
87 | User-Agent: | 87 | User-Agent: |
88 | - tests/v311 | 88 | - tests/v311 |
89 | method: DELETE | 89 | method: DELETE |
90 | uri: http://localhost:3000/api/v1/statuses/109336907896557916 | 90 | uri: http://localhost:3000/api/v1/statuses/109337448591433112 |
91 | response: | 91 | response: |
92 | body: | 92 | body: |
93 | string: '{"id":"109336907896557916","created_at":"2022-11-13T14:13:34.341Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | 93 | string: '{"id":"109337448591433112","created_at":"2022-11-13T16:31:04.690Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content |
94 | warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109336907896557916","url":"http://localhost:3000/@mastodonpy_test/109336907896557916","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 94 | warning","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109337448591433112","url":"http://localhost:3000/@mastodonpy_test/109337448591433112","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
95 | test suite","website":null},"account":{"id":"109336899193569236","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 95 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
96 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | 96 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI |
97 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":8,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | 97 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":9,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' |
98 | headers: | 98 | headers: |
99 | Cache-Control: | 99 | Cache-Control: |
100 | - no-store | 100 | - no-store |
101 | Content-Security-Policy: | 101 | Content-Security-Policy: |
102 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 102 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
103 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 103 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
104 | style-src ''self'' http://localhost:3000 ''nonce-lJqjH5SbTkpael4SdZALbA==''; | 104 | style-src ''self'' http://localhost:3000 ''nonce-AdovYHTElImlsTraM4+T8Q==''; |
105 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 105 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
106 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 106 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
107 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 107 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -111,7 +111,7 @@ interactions: | |||
111 | Content-Type: | 111 | Content-Type: |
112 | - application/json; charset=utf-8 | 112 | - application/json; charset=utf-8 |
113 | ETag: | 113 | ETag: |
114 | - W/"4b54f7967ec857e92cce1d49e76a2f0f" | 114 | - W/"347ae05af335832adf1d92ec306b7f67" |
115 | Referrer-Policy: | 115 | Referrer-Policy: |
116 | - strict-origin-when-cross-origin | 116 | - strict-origin-when-cross-origin |
117 | Transfer-Encoding: | 117 | Transfer-Encoding: |
@@ -127,9 +127,9 @@ interactions: | |||
127 | X-Permitted-Cross-Domain-Policies: | 127 | X-Permitted-Cross-Domain-Policies: |
128 | - none | 128 | - none |
129 | X-Request-Id: | 129 | X-Request-Id: |
130 | - e1a47835-b453-42b0-b5da-b5ea88879ba7 | 130 | - 76237660-e938-44be-91eb-0e254cb7a2e4 |
131 | X-Runtime: | 131 | X-Runtime: |
132 | - '0.024838' | 132 | - '0.025693' |
133 | X-XSS-Protection: | 133 | X-XSS-Protection: |
134 | - 1; mode=block | 134 | - 1; mode=block |
135 | status: | 135 | status: |